<template>
	<view>
		<list-cell icon="iconfont icon-my-shangpingshoucang" iconColor="#00aaff" fontSize="46rpx" title="商品收藏" @eventClick="goPageCheckLogin('/package_mall/pages/product/favorite',true)"></list-cell>
		<list-cell icon="iconfont icon-my-wodedingdan" iconColor="#00aaff" fontSize="46rpx" title="我的订单" @eventClick="goPageCheckLogin('/package_mall/pages/order/order?state=&flag=1',true)"></list-cell>
	</view>
</template>

<script>
	import listCell from '@/components/mix-list-cell';
	export default {
		data() {
			return {

			}
		},
		methods: {
			goPageCkeckLoginAndCommunity(url, ischeck) {
				if (url == "") {
					this.$api.msg("该功能暂未开放")
					return;
				}
				if (ischeck) {
					this.$api.sysauth.checkLoginAndBindCommunity(url);
				} else {
					uni.navigateTo({
						url
					})
				}
			},

			goPageCheckLogin(url, ischeck) {
				if (url == "") {
					this.$api.msg("该功能暂未开放")
					return;
				}
				if (ischeck) {
					this.$api.sysauth.checkLogin(url);
				} else {
					uni.navigateTo({
						url
					})
				}
			},
		},
		components: {
			listCell
		}
	}
</script>

<style>
</style>
